# -*- coding: utf-8 -*-

from core.serializers import CustomModelSerializer
from apps.sys.models import DictType, DictData


class DictTypeSerializer(CustomModelSerializer):
    """
    字典-序列化器
    """
    class Meta:
        model = DictType
        fields = "__all__"
        read_only_fields = ["id"]


class DictDataSerializer(CustomModelSerializer):
    """
    字典-序列化器
    """
    class Meta:
        model = DictData
        fields = "__all__"
        read_only_fields = ["id"]
